home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 32
/
PC Gamer IT CD 32 1-2.iso
/
ELINK
/
14-DAY
/
CLARISHP
/
_SETUP.1
/
HOMEPAGE.exe
/
1009
/
167
< prev
next >
Wrap
Text File
|
1997-02-20
|
6KB
|
196 lines
// -----
// VDL167.txt
// Copyright 1996 Claris
// -----
//About Box and Splash Screen
#ifdef TryMe
#define LITE_VERSION 1
#endif
/************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
/************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
/************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
//This section contains all localizable string constants for this VDL program. Be sure to
//include the backslash character at the end of each line of a multi-line string, except for the last line.
//You may also flatten multiline constants into a single line, if you prefer
#define kLit1 "Registered To:"
#define kLit2 "&Info"
#define kLit3 "&Credits"
#define kLit4 "&About"
#define kLit5 "&OK"
#define kLit6 "&How To Upgrade"
//Localized Fonts
#if Platform_Mac
#define AboutFont Font = {Geneva, 9, {Plain}}
#else
#define AboutFont Font = {Arial, 8, {Plain}}
#endif
/************************** LOCALIZED STRING CONSTANTS END **************************************/
/************************** LOCALIZED STRING CONSTANTS END **************************************/
/************************** LOCALIZED STRING CONSTANTS END **************************************/
/************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
/************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
/************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
//This section contains integer constants that are used to format this VDL program.
//These are localizable - they only need to be changed if the localized strings
//are sufficiently longer than the US strings. Localize the strings first, then the constants.
//Height and width of the views in the middle of the dialog that display the info text,
//the credits, or the about text.
#define kInfoViewWidth 200
#define kInfoViewHeight 165
//Space between the left edge of the window and the left edge of the info views.
#define kInfoViewLeftMargin 92
//Margin between the info view and the crane picture, on the right
#define kInfoViewRightMargin 0
//Widths of all the buttons, when visible. Note that the width of the dialog
//is computed without checking the button widths. This is so they
//automatically right-juetify themselves. If you need to make the buttons wider than
//the dialog is allowing for, increase the kDialogMinWidth constant to add padding
//to the dialog. Alternately, you can increase the kInfoViewRightMargin constant above
#define kButtonWidth 60
//See comment above. Minimum width of the dialog. Typically not used.
#define kDialogMinWidth 0
//Margin to the left of the "Home Page" logotype
#define kHomePagePictLeftMargin 88
//Space above the top of the crane graphic.
#if !LITE_VERSION
#define kGraphicLeftMargin 0
#define kGraphicTopMargin 42
#else
#define kGraphicLeftMargin 20
#define kGraphicTopMargin 80
#endif
#define kButtonSpacing 10
/************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
/************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
/************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
//No further localizable data past this point
/************************** END LOCALIZABLE DATA ***************************************************/
/************************** END LOCALIZABLE DATA ***************************************************/
/************************** END LOCALIZABLE DATA ***************************************************/
#define SplashColor White
#define ccSplashInfoCommand 3600
#define ccSplashAboutCommand 3601
#define ccSplashCreditsCommand 3602
#define ccUpgradeInfo 3603
#define ccOK 1071 // from CommandCode.h
Define(InfoViews)
Switch(aboutMode, Height = kInfoViewHeight, Width = kInfoViewWidth, BackColor = SplashColor)
{
case 0: //Info
VList(Width = UseParent)
{
#if !LITE_VERSION
StaticText(kLit1,Width = UseParent, AboutFont);
StaticText(user_name,Width = UseParent, AboutFont);
StaticText(user_company, Width = UseParent, AboutFont);
StaticText(user_ID, Width = UseParent, AboutFont);
#endif
StaticText(infoText, Width = UseParent, AboutFont);
}
case 1: //about
StaticText(aboutText, Height = UseParent, Width = UseParent, AboutFont);
case 2: //credits
GenericView("CreditsView");
default:
Spacer(Height = 0, Width = 0);
} //Switch
Margin(0, 0, 10, 10, BackColor = SplashColor)
VList()
{
Spacer(Height = 0, Width = kDialogMinWidth);
Margin(3,3,20,0)
PICT(15000, DontMap);
HList()
{
VList()
{
Margin(kHomePagePictLeftMargin, 5, 0, 0)
#if !LITE_VERSION
PICT(15001, DontMap);
#else
PICT(15011, DontMap);
#endif
Margin(kInfoViewLeftMargin, 5 , 0, 0)
Call(InfoViews);
}
Margin(kGraphicLeftMargin, kGraphicTopMargin, 0, 0)
#if !LITE_VERSION
PICT(15002, DontMap);
#else
PICT(15012, DontMap);
#endif
}
Switch(showButtons)
{
case 1:
Spacer(Height = 5, Width = 0);
default:
Spacer(Height = 0, Width = 0);
}
Switch (showButtons, Width = UseParent)
{
case 1:
HList(Width = UseParent)
{
Spacer(Height = 0, Width = UseParent);
#if LITE_VERSION
PushButton( kLit6, ccUpgradeInfo, "None");
Spacer(Height = 0, Width = kButtonSpacing);
#endif
PushButton( kLit2, ccSplashInfoCommand, "None", Width = kButtonWidth);
Spacer(Height = 0, Width = kButtonSpacing);
PushButton( kLit3, ccSplashCreditsCommand, "None", Width = kButtonWidth);
Spacer(Height = 0, Width = kButtonSpacing);
PushButton( kLit4, ccSplashAboutCommand, "None", Width = kButtonWidth);
Spacer(Height = 0, Width = kButtonSpacing);
PushButton( kLit5, ccOK, "None", Width = kButtonWidth);
}
default:
HelpView(AboutFont);
}
} //Main List